package com.wolfking.demo.aggregate;

import lombok.SneakyThrows;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.math.BigDecimal;
import java.util.concurrent.TimeUnit;

/**
 * <p>
 *
 * @author 赵伟伟(wolfking)
 * created on 2019-10-17 20:36
 */
@Slf4j
@Component
public class AccountService {

    @SneakyThrows
    public BigDecimal getAccount(int id){
        TimeUnit.SECONDS.sleep(1);
        log.info("getAccount {}",id);
        return BigDecimal.TEN;
    }
}
